//
//  DXFEntity.h
//  dxfreader
//
//  Created by Holmes Futrell on 5/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface DXFNode : NSObject {

	NSString *data;
	int groupCode;
	NSMutableArray *children;
	
	BOOL exists;
	
}

@property (readonly) int groupCode;

-(id)initWithGroupId:(int)gid data:(NSString *)_type;
-(void)addChild:(DXFNode *)child;

-(NSArray *)children;
-(DXFNode *)childOfCode:(int)groupCode;
-(BOOL)childExistsForCode:(int)groupCode;

-(NSString *)stringValue;
-(int)intValue;
-(double)doubleValue;

-(NSString *)description;

@end
